/*
*  Copyright 2019-2023 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.modules.biz.domain;

import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import javax.validation.constraints.NotNull;

/**
* @description /
* @author yiwei.he
* @date 2024-03-14
**/
@Data
@TableName("tz_volunteer_profession")
public class VolunteerProfession implements Serializable {
    @NotNull
    @ApiModelProperty(value = "自增id")
    private Long id;

    @NotNull
    @ApiModelProperty(value = "志愿表id")
    private Long volunteerId;

    @NotNull
    @ApiModelProperty(value = "用户id")
    private Long userId;

    @NotNull
    @ApiModelProperty(value = "专业id")
    private Long professionId;

    @NotNull
    @ApiModelProperty(value = "类型【1：高考志愿 2：单招 3.专升本】")
    private Integer category;

    @NotNull
    @ApiModelProperty(value = "志愿中的专业排序")
    private Integer professionSort;

    public void copy(VolunteerProfession source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
